package com.crrc.dataparse.entity;

import com.crrc.dataparse.util.IDGenerator;

import java.io.Serializable;
import java.util.List;

public class Template implements Serializable {
    private String plt_id = IDGenerator.getPltID();
    private String oid;
    private String templateID;
    private String templateName;
    private TempTreClass parseClassName;
    private String parseParameter;
    private Boolean templateType;
    private Integer fixedLength;
    private TemplatePara lengthParameter;
    private TemplatePara commonKey;
    private TemplatePara uniqueKey;
    private List<Tem2TemPara> tem2TemParaList;
    private String versionList;
    private Integer tempType;
    private boolean isStoreRawData;
    private List<Temp2Treat> temp2TreatList;

    public Template() {
    }

    public String getTemplateName() {
        return this.templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public TempTreClass getParseClassName() {
        return this.parseClassName;
    }

    public void setParseClassName(TempTreClass parseClassName) {
        this.parseClassName = parseClassName;
    }

    public String getParseParameter() {
        return this.parseParameter;
    }

    public void setParseParameter(String parseParameter) {
        this.parseParameter = parseParameter;
    }

    public Integer getFixedLength() {
        return this.fixedLength;
    }

    public void setFixedLength(Integer fixedLength) {
        this.fixedLength = fixedLength;
    }

    public TemplatePara getLengthParameter() {
        return this.lengthParameter;
    }

    public void setLengthParameter(TemplatePara lengthParameter) {
        this.lengthParameter = lengthParameter;
    }

    public String getOid() {
        return this.oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public void setTemplateType(Boolean templateType) {
        this.templateType = templateType;
    }

    public Boolean getTemplateType() {
        return this.templateType;
    }

    public List<Tem2TemPara> getTem2TemParaList() {
        return this.tem2TemParaList;
    }

    public void setTem2TemParaList(List<Tem2TemPara> tem2TemParaList) {
        this.tem2TemParaList = tem2TemParaList;
    }

    public List<Temp2Treat> getTemp2TreatList() {
        return this.temp2TreatList;
    }

    public void setTemp2TreatList(List<Temp2Treat> temp2TreatList) {
        this.temp2TreatList = temp2TreatList;
    }

    public String getTemplateID() {
        return this.templateID;
    }

    public void setTemplateID(String templateID) {
        this.templateID = templateID;
    }

    public TemplatePara getCommonKey() {
        return this.commonKey;
    }

    public void setCommonKey(TemplatePara commonKey) {
        this.commonKey = commonKey;
    }

    public TemplatePara getUniqueKey() {
        return this.uniqueKey;
    }

    public void setUniqueKey(TemplatePara uniqueKey) {
        this.uniqueKey = uniqueKey;
    }
    @Override
    public String toString() {
        return this.oid;
    }

    public String getVersionList() {
        return this.versionList;
    }

    public void setVersionList(String versionList) {
        this.versionList = versionList;
    }

    public Integer getTempType() {
        return this.tempType;
    }

    public void setTempType(Integer tempType) {
        this.tempType = tempType;
    }

    public boolean isStoreRawData() {
        return this.isStoreRawData;
    }
    public void setStoreRawData(boolean isStoreRawData) {
        this.isStoreRawData = isStoreRawData;
    }
}
